// 赋值枚举
enum Direction {
  Up = "UP",
  Down = "DOWN",
  Left = "LEFT",
  Right = "RIGHT",
}
console.log(Direction.Up); // "UP"

// 不赋值 默认从 0 开始
enum MyName {
  Tom,
  Cat,
  Steven,
}
console.log(MyName.Cat); //1
console.log(MyName[0]); //Tom
export {};
